﻿@model FantasyDraft2.Models.PlayerInjuryViewModel

@{
    ViewBag.Title = "Index";
}

<h2>Please select the Player and set Injury status:</h2>

@using (Html.BeginForm()) {
    <table>
        <tr>
            <td>
                Player Name:
            </td>
            <td>
                Set Injury: 
            </td>
        </tr>
        <tr>
            <td>
                 @Html.DropDownListFor(x => x.playerId, new SelectList(Model.Players,"PlayerId","Name"))
            </td>
            <td>
                 @Html.DropDownListFor(x => x.isInjured, new [] { new SelectListItem { Text = "Yes", Value="1" } , new SelectListItem { Text = "No", Value="0"} })   
            </td>
            <td>
                <input type="submit" value="Go" />
            </td>
        </tr>
    </table>
}
